body {
  margin: 0px;
}

.top-box {
  padding: 5vw;
  color: #eeeeee;
  background-image: url('../images/bataman0004.jpg');
  background-size: cover;
  background-repeat: no-repeat;
}

.l1 {
  font-size: 2rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

.menu > div {
  width: 1.2rem;
  height: 1px;
  background-color: #eeeeee;
  margin: 6px;
}

.main-box {
  padding: 10vw 5vw 5vw 5vw;
}

.hi {
  background-color: #666;
  color: #eeeeee;
  padding: 0.5rem;
}

.info {
  margin: 2rem 0rem;
  font-size: 3rem;
  font-weight: bold;
}

.get {
  border: 2px solid #eeeeee;
  padding: 0.5rem 1rem;
  /* 字母转大写 */
  text-transform: uppercase;
  margin-top: 3vw;

  cursor: pointer;
  background-color: transparent;
  transition: all 0.5s;
}

.get:hover {
  background-color: #eeeeee;
  color: #333;
}

/* 菜单的动画效果 */
.menu:hover > div:nth-of-type(2) {
  opacity: 0;
}

.menu:hover > div:nth-of-type(1) {
  transform: rotate(45deg);
  transform-origin: top left;
}

.menu:hover > div:nth-of-type(3) {
  transform: rotate(-45deg);
  transform-origin: top left;
}

.menu > div {
  transition: all 0.5s;
  opacity: 1;
  transform: rotate(0deg);
}

.about-box {
  width: 70vw;
  margin: 5vw auto;
}

.about-title {
  position: relative;
  margin: 2rem 0rem;
  display: flex;
}

.about-title > div:first-of-type {
  font-size: 6rem;
  color: #eeeeee;
}

.about-title > div:last-of-type {
  position: absolute;
  background-color: #fff;
  padding: 0.5rem;
  margin: 3rem 0rem;
  transform: translateX(6rem);
}

.intro {
  display: flex;
}

.intro > div {
  flex: 1;
}

.intro-text {
  margin-bottom: 2rem;
  margin-right: 3rem;
  line-height: 2em;
  color: #dcdcdc;
}

.intro-about {
  display: flex;
}

.intro-about > div {
  background-color: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.intro-about span:last-of-type {
  display: inline-block;
  transition: all 0.5s;
}

.intro-about > div:hover span:last-of-type {
  transform: translateX(3rem);
}

.skill-text {
  font-size: 1.5rem;
  color: #dcdcdc;
  margin-bottom: 1rem;
}

.progress-box {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.progress-box > div:first-of-type {
  height: 0.3rem;
  background-color: #000;
}

.progress-box > div:last-of-type {
  flex: 1;
  background-color: #dcdcdc;
  height: 0.1rem;
}

/* 作品展示 */
.portfolio {
  margin: 3vw auto;
  position: relative;
  display: flex;
  justify-content: center;
  font-size: 5rem;
  color: #dcdcdc;
}

.portfolio span {
  font-size: 1rem;
  background-color: #fff;
  color: #999;
  display: inline-block;
  padding: 0.5rem;
}

.portfolio > div:last-of-type {
  position: absolute;
  top: 0px;
  right: 0px;
  left: 0px;
  bottom: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.p-box {
  width: 70vw;
  margin: 0px auto;
  display: flex;
  gap: 2rem;
}

.p-box > div {
  flex: 1;
}

.p-box img {
  display: block;
  width: 100%;
  height: auto;
  transition: all 1s;
  transform: scale(1);
}

.p-box img:hover {
  transform: scale(1.1);
}

.box-16-8 {
  overflow: hidden;
  aspect-ratio: 9 / 10;
  margin: 1rem 0px;
}

.box-8-10 {
  overflow: hidden;
  aspect-ratio: 11 / 8;
  margin: 1rem 0px;
}

.box-9-9 {
  overflow: hidden;
  aspect-ratio: 11 / 10;
  margin: 1rem 0px;
}

.p-info {
  text-align: right;
  margin-top: 1rem;
  margin-bottom: 3rem;
  cursor: pointer;
  font-size: 1.2rem;
  color: #000;
  transition: all 1s;
}

.p-info:hover {
  color: #666;
}

/* 动态渐变遮罩效果 */
.mask-box {
  width: 70vw;
  margin: 3rem auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.mask-box img {
  width: 100%;
  aspect-ratio: 9/11;
}

.mask-box > div {
  position: relative;
  overflow: hidden;
}

.mask-box > div::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 0px;
  right: 0px;
  bottom: -20%;
  transition: all 1s;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.7) 90%
  );
  transform: translateY(0%);
}

.mask-box > div:hover::after {
  transform: translateY(20%);
}
